import { RouteRecordRaw } from 'vue-router';

const router: RouteRecordRaw[] = [
  {
    path: '/psychology',
    name: 'psychology',
    redirect: { name: 'psychologyLayout' },
    component: () => import('@/layouts/LayoutFirst.vue'),
    children: [
      {
        path: '/psychology/',
        name: 'psychologyLayout',
        redirect: { name: 'psychologyCollective' },
        component: () => import('@/layouts/LayoutSecond.vue'),
        children: [
          { path: '/psychology/collective', name: 'psychologyCollective', component: () => import('@/pages/psychology/views/collective.vue') },
          { path: '/psychology/physical-exam', name: 'psychologyPhysicalExam', component: () => import('@/pages/psychology/views/physical-exam.vue') },
          { path: '/psychology/personal', name: 'psychologyPersonal', component: () => import('@/pages/psychology/views/personal.vue') },
        ],
      },
    ],
  },
];

export default router;
